extends Node2D

@export var done = false

# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
	if (done):
		done = false
		$Timer.start()

func play():
	var num = (randi() % 2) + 1
	var type = "effect" + str(num)
	$AnimationPlayer.play(type)

func _on_Timer_timeout():
	queue_free()
